//
//  WebserviceUtility.h
//  TestApp
//
//  Created by jwc on 2021/3/2.
//  Copyright © 2021 hyf. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GDataXMLNode.h"
#import <AFNetworking/AFNetworking.h>

NS_ASSUME_NONNULL_BEGIN

@interface WebserviceUtility : NSObject

/**
 *  调webservice POST请求
 *  @param urlString webservice地址
 *  @param methodName webservice方法名
 *  @param params webservice参数 (有时需要base64编码) 数组装字典
 *  @param success 调webservice成功之后的操作
 *  @param failure 调webservice失败之后的操作
 */

+(void)soapWithPostSessionManagerWithURL:(NSString *)urlString withMethodName:(NSString *)methodName withParams:(NSArray *)params success:(void (^)(id  responseObject))success
                      failure:(void (^)(NSError *error))failure;
/**
 *  调webservice GET请求
 *  @param urlString webservice地址
 *  @param params webservice参数 数组装字典
 *  @param success 调webservice成功之后的操作
 *  @param failure 调webservice失败之后的操作
 */
+ (void)soapWithGetRESTWithURL:(NSString *)urlString withParams:(NSArray *)params success:(void (^)(id  responseObject))success failure:(void (^)(NSError *error))failure;


@end

NS_ASSUME_NONNULL_END
